<template>

    <el-container>
        <el-aside width="200px">
            账号管理
        </el-aside>

        <el-container>
            <el-header>
                <el-menu router :default-active="this.$route.path" class="el-menu-demo" mode="horizontal">
                    <el-menu-item index="/index/description/info">基本资料</el-menu-item>
                    <el-menu-item index="/index/description/passwordman">密码管理</el-menu-item>
                    <el-menu-item index="3" disabled>信息完善</el-menu-item>
                    <el-menu-item index="/index/description/changeemail">邮箱修改</el-menu-item>
                </el-menu>
            </el-header>
            <el-main>
                <router-view></router-view>
            </el-main>
        </el-container>
    </el-container>
</template>

<script>
export default {
    data() {
        return {
            account: '',
            activeIndex: '1',
        };
    },
    methods: {
        getdata() {
            this.$router.push('/index/description/passwordman')
        }
    },
    mounted() {
        this.account = JSON.parse(localStorage.getItem("userinfo")).userinfo
        console.log(this.account)
    }
}
</script>
<style scoped>
.el-header {
    background-color: #ffffff;
    color: #333;
    text-align: center;
    line-height: 120px;
}

.el-aside {
    background-color: #e7f2ff;
    color: #333;
    text-align: center;
    line-height: 400px;
}

.el-main {
    background-color: #ffffff;
    color: #333;
    line-height: 320px;
}

body > .el-container {
    margin-bottom: 80px;
}

.el-container .el-aside {
    line-height: 520px;
}

</style>
